import _00GraphFuc as gf
import _000GraphBasicProblem as gb

#11.2构建一个复杂的节点度为偶数图
m,n=20,3
[V0,E0]=gf.cyclicgraphset(m)
gf.drawgraph(E0)
[V,E]=gb.replacevertex(V0,E0,n)
[d,di,do] =gf.degreeset(V0,E)
gf.drawgraph(E)
print("V0,E0", V0,E0)
print("V,E",V,E)
print(d)